<template>
  <com-header title="编辑买号"></com-header>
  <Account :type="1" :id="id"></Account>
</template>
<script lang="ts">
import { defineComponent, ref, defineAsyncComponent } from "vue";
import { useRoute } from "vue-router";
export default defineComponent({
  components: {
    Account: defineAsyncComponent(
      () => import("@/views/account/component/account.vue")
    ),
  },
  setup() {
    const route = useRoute(),title = ref(route.query.title), id = ref(route.params.id),
      tabs = [
        {
          id: 1,
          title: "淘宝天猫阿里",
        },
        {
          id: 2,
          title: "京东",
        },
        {
          id: 3,
          title: "拼多多",
        },
        {
          id: 4,
          title: "抖音",
        },
        {
          id: 5,
          title: "快手",
        },
      ],
      active = ref(0);

    return {
      title,
      active,
      tabs,
      id
    };
  },
});
</script>
